package com.wpf.test02;

public class demo {
    public static void main(String[] args) {

//        check(A.BOY);
//        Data<Student> s = new impl1();
        Data s = new impl2();
        s.getName("345");

    }

    private static void check(A sex) {
        switch (sex){
            case BOY -> System.out.println("nanananan");
            case GIRL -> System.out.println("nvnvnv");
        }
    }
}
